$OpenBSD: patch-js_src_xpconnect_shell_Makefile_in,v 1.1 2013/12/09 16:31:59 landry Exp $
--- js/src/xpconnect/shell/Makefile.in.orig	Wed Jun 17 07:21:48 2009
+++ js/src/xpconnect/shell/Makefile.in	Sat Jun 20 22:09:10 2009
@@ -60,6 +60,8 @@ CMMSRCS += xpcshellMacUtils.mm
 endif
 
 LIBS		= \
+		-Wl,-rpath-link,${LOCALBASE}/lib \
+		-Wl,-rpath-link,${X11BASE}/lib \
 		$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
 		$(LIBXUL_LIBS) \
 		$(MOZ_JS_LIBS) \
